package kr.hkit.androidcomplete02.ch01;

import kr.hkit.androidcomplete02.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class ch02Main extends Activity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch02_main);
	}

	public void mOnClick(View v) {
		Intent intent = null;

		switch (v.getId()) {
		case R.id.ch02_btn01:
			intent = new Intent(this, ListAddDel.class);
			break;
		case R.id.ch02_btn02:
			intent = new Intent(this, ListAddDelma.class);
			break;
		case R.id.ch02_btn03:
			intent = new Intent(this, CustomAdapterView.class);
			break;
		case R.id.ch02_btn04:
			intent = new Intent(this, CustomAdapterView02.class);
			break;
		case R.id.ch02_btn05:
			intent = new Intent(this, ListOnly.class);
			break;
		/*
		 * case R.id.ch02_btn06: intent = new Intent(this, SpinnerEx.class);
		 * break;
		 */
		case R.id.ch02_btn07:
			intent = new Intent(this, GalleryTest.class);
			break;
		case R.id.ch02_btn08:
			intent = new Intent(this, CursorAdapterEx.class);
			break;
		case R.id.ch02_btn09:
			intent = new Intent(this, ManyItem.class);
			break;
		}
		startActivity(intent);
	}
}
